package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.VideoChannelsMapper;
import com.ruoyi.business.domain.VideoChannels;
import com.ruoyi.business.service.IVideoChannelsService;

/**
 * 摄像头通道实例Service业务层处理
 * 
 * @author asher
 * @date 2021-12-05
 */
@Service
public class VideoChannelsServiceImpl implements IVideoChannelsService 
{
    @Autowired
    private VideoChannelsMapper videoChannelsMapper;

    /**
     * 查询摄像头通道实例
     * 
     * @param id 摄像头通道实例主键
     * @return 摄像头通道实例
     */
    @Override
    public VideoChannels selectVideoChannelsById(Long id)
    {
        return videoChannelsMapper.selectVideoChannelsById(id);
    }

    /**
     * 查询摄像头通道实例列表
     * 
     * @param videoChannels 摄像头通道实例
     * @return 摄像头通道实例
     */
    @Override
    public List<VideoChannels> selectVideoChannelsList(VideoChannels videoChannels)
    {
        return videoChannelsMapper.selectVideoChannelsList(videoChannels);
    }

    /**
     * 新增摄像头通道实例
     * 
     * @param videoChannels 摄像头通道实例
     * @return 结果
     */
    @Override
    public int insertVideoChannels(VideoChannels videoChannels)
    {
        return videoChannelsMapper.insertVideoChannels(videoChannels);
    }

    /**
     * 修改摄像头通道实例
     * 
     * @param videoChannels 摄像头通道实例
     * @return 结果
     */
    @Override
    public int updateVideoChannels(VideoChannels videoChannels)
    {
        return videoChannelsMapper.updateVideoChannels(videoChannels);
    }

    /**
     * 批量删除摄像头通道实例
     * 
     * @param ids 需要删除的摄像头通道实例主键
     * @return 结果
     */
    @Override
    public int deleteVideoChannelsByIds(Long[] ids)
    {
        return videoChannelsMapper.deleteVideoChannelsByIds(ids);
    }

    /**
     * 删除摄像头通道实例信息
     * 
     * @param id 摄像头通道实例主键
     * @return 结果
     */
    @Override
    public int deleteVideoChannelsById(Long id)
    {
        return videoChannelsMapper.deleteVideoChannelsById(id);
    }
}
